/*
 * @Author: samfeng
 * @Date: 2021-04-17 21:55:49
 * @LastEditTime: 2021-04-17 22:02:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /first_flutter_app/lib/controller/homePageController.dart
 */
import 'package:first_flutter_app/constant/dataInfo.dart';
import 'package:get/get.dart';

class HomeController extends GetxController {
  var aList = tableList.obs;
  var showOrderDetails = false;
  var showColorFlage = 1;
  static HomeController get hc => Get.find();
  
  incrementTable() {
    aList.add({'tableName': '桌台12', 'person': '2', 'tableMaxOcup': '4'});
  }

  descrementTable() {
    aList.removeLast();
  }

  void setShowOrderDetails() {
    showOrderDetails = !showOrderDetails;
    update();
  }

  void setNoShowOrderDetails() {
    if (showOrderDetails) {
      showOrderDetails = false;
      update();
    }
  }

}
